package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsHomeGetFollowedList;
/**
 * 点击首页，进入关注界面，获取关注用户的帖子列表（响应参数同帖子详情接口）
 * @author wliu
 * edit tse
 */
public class MomentsHomeGetFollowedListResponse extends RudderResponse{
    
    private List<MomentsHomeGetFollowedList> getFollowedList = new ArrayList<MomentsHomeGetFollowedList>();
		
	
    /**
     * @return getFollowedList
     */	
    public List<MomentsHomeGetFollowedList> getGetFollowedList() { 
	    return this.getFollowedList;
    };
	
	/**
     * @return getFollowedList
     */	
    public void setGetFollowedList(List<MomentsHomeGetFollowedList> getFollowedList) { 
        this.getFollowedList = getFollowedList;
    };
    
	
        
    private static void filterFor(MomentsHomeGetFollowedListTags moments) {
        if (moments.getX() == null) {
            moments.setX("");
        }
        if (moments.getY() == null) {
            moments.setY("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
    }
        
    private static void filterFor(MomentsHomeGetFollowedList moments) {
        if (moments.getMomentId() == null) {
            moments.setMomentId("");
        }
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getIsFollowed() == null) {
            moments.setIsFollowed("");
        }
        if (moments.getIsLiked() == null) {
            moments.setIsLiked("");
        }
        if (moments.getIsDeleted() == null) {
            moments.setIsDeleted("");
        }
        if (moments.getLikeNum() == null) {
            moments.setLikeNum("");
        }
        if (moments.getContent() == null) {
            moments.setContent("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getShareLink() == null) {
            moments.setShareLink("");
        }
        if (moments.getCreateTime() == null) {
            moments.setCreateTime("");
        }
        if (moments.getShareTitle() == null) {
            moments.setShareTitle("");
        }
        if (moments.getShareDescription() == null) {
            moments.setShareDescription("");
        }
        if (moments.getTags() == null) {
            moments.setTags(new ArrayList<MomentsHomeGetFollowedListTags>());
        } else {
            for (MomentsHomeGetFollowedListTags item : moments.getTags()) {
                filterFor(item);
            }
        }
    }
        
    public static void filter(MomentsHomeGetFollowedListResponse moments) {
        if (moments.getGetFollowedList() == null) {
            moments.setGetFollowedList(new ArrayList<MomentsHomeGetFollowedList>());
        } else {
            for (MomentsHomeGetFollowedList item : moments.getGetFollowedList()) {
                filterFor(item);
            }
        }
    }
}
